/*
 * Created by Jaren at 2021/10/29 10:50
 */
import 'dart:typed_data';

import 'package:ble_plugin/ble_plugin.dart';
import 'package:ble_plugin_example/base/base.dart';

class OperationController extends BaseController {


    @override
    void init() {
//        Future.delayed(Duration(seconds: 2), () {
//            BleManager().write([0xaa, 0xaa, 0x11, 0x02, 0x02, 0x01, 0x10]);
//        });
    }

    void disconnectCurrent({String? flag}) {
        BleManager().disconnect(flag: flag);
    }

    @override
    void onClose() {
        super.onClose();
        BleManager().disconnect();
    }
}
